﻿using System;

/*
Write a program that finds the greatest of given 5 variables.
 */

class GreatestOf5Variables
{
    static void Main(string[] args)
    {
        double a = 1;
        double b = 3;
        double c = 4;
        double d = 2;
        double e = 0;

        double greatestValue = a;
        
        if (b > greatestValue)
        {
            greatestValue = b;
        }
        if (c > greatestValue)
        {
            greatestValue = c;
        }
        if (d > greatestValue)
        {
            greatestValue = d;
        }
        if (e > greatestValue)
        {
            greatestValue = e;
        }

        Console.WriteLine("The greatest of {0}, {1}, {2}, {3}, {4} is : {5}",a,b,c,d,e,greatestValue);

    }
}

